package com.luceneheritrixbook.searchengine.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class SetResponseFilter implements Filter 
{

	public void init(FilterConfig arg0) throws ServletException 
	{

	}

	public void doFilter(ServletRequest req, ServletResponse rep,FilterChain chain) throws IOException, ServletException 
	{	
		chain.doFilter(req, rep);
		//rep.setCharacterEncoding("gb2312");
	}

	public void destroy() 
	{

	}
}
